import { Vector3 } from '../Math/Vector3'
import { Material } from './Material'
// 条纹纹理
export class StripeMaterial extends Material {
    readonly type: string
    param: number
    stripe:number
    twill: number
    color: Vector3
    speed: number
    constructor(color: Vector3 = new Vector3(0.013282,0.05818,0.169083), param: number = 1.155359, stripe: number = 1,twill: number = 0,speed: number = 1) {
        super()
        this.type = 'StripeMaterial'
        this.color = color
        this.param = param
        this.stripe = stripe
        this.twill = twill
        this.speed = speed
    }
    setParam(param: number) {
        this.param = param
    }
    setstripe(stripe: number) {
        this.stripe = stripe
    }
    settwill(twill: number) {
        this.twill = twill
    }
    setspeed(speed: number) {
        this.speed = speed
    }
}